<template>
    <el-table-column align="left" v-bind="$attrs"  show-overflow-tooltip>
        <template slot-scope="{row}">
            <my-link @to="toView(row)">{{row[$attrs.prop]}}</my-link>
        </template>
    </el-table-column>
</template>
<script>
    import MyLink from "../MyLink/index";
    export default {
        name:"MyTitleColumn",
        components: { MyLink},
        methods:{
            toView(row){
                this.$emit("click",row)
            }
        }
    }
</script>
